package interview.builder;/*

 */

/**
 * @ClassName Client
 * @Author Final
 * @Project DataStructures
 */
public class Client {

    public static void main(String[] args) {
//        ComputerDirector director=new ComputerDirector();//1
//        ComputerBuilder builder=new MacComputerBuilder("I5处理器","三星125");
//        director.makeComputer(builder);//3
//        Computer macComputer=builder.getComputer();//4
//        System.out.println("mac computer:"+macComputer.toString());
//
//        ComputerBuilder lenovoBuilder=new LenovoComputerBuilder("I7处理器","海力士222");
//        director.makeComputer(lenovoBuilder);
//        Computer lenovoComputer=lenovoBuilder.getComputer();
//        System.out.println("lenovo computer:"+lenovoComputer.toString());

        Builder builder = new ConcreteBuilder();
        Director director = new Director(builder);
//        director.construct();
        Product product = director.construct();
        System.out.println(product.toString());


        StringBuilder stringBuilder=new StringBuilder();
    }

}
